<div th:fragment="frag(list)">
	<div class="modal fade" th:id="|${list.app.domprefix}-${list.id}-modal-update-viewproperty|">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">修改视图属性</h4>
				</div>
				<div class="modal-body" data-bigradio>
					<div class="box box-primary">
						<div class="box-body">
							<div class="form-group">
								<label class="control-label">ID</label>
								<input class="form-control" name="id" readonly>
								<input type="hidden" name="app">
							</div>
							<div class="form-group">
								<label class="control-label">名称</label>
								<input class="form-control" name="name" placeholder="请输入名称">
							</div>
							<div class="form-group">
								<label class="control-label">关系</label>
								<select class="form-control" name='relation' data-bigcombo-url="/meta/man/biz/relation" data-bigcombo-autoload 
									th:data-bigcombo-object="${list.app.object.id}">
									<option value>请选择关系...</option>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label">属性</label>
								<select class="form-control" name='property' data-bigcombo-url="/meta/man/biz/property" data-bigcombo-autoload 
									th:data-bigcombo-object="${list.app.object.id}" data-bigcombo-target="relation">
									<option value>请选择属性...</option>
								</select>
							</div>
						</div>
					</div>
					<div>
						<div class="box box-primary" th:if="${list.type == 'list'}">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label class="control-label">控件</label>
									<div class="row">
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="hidden" name="type">hidden</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="textfield" name="type">textfield</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="icon" name="type">icon</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="dictionary" name="type">dictionary</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="file" name="type">file</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="html" name="type">html</label>
											</div>
										</div>
									</div>
								</div>
								<div class="form-group hidden" data-bigradio-target="type.dictionary">
									<label class="control-label">数据字典类型</label>
									<input class="form-control" name="dictionarytype" placeholder="请输入字典类型">
								</div>
								<div class="form-group hidden" data-bigradio-target="type.textfield">
									<label class="control-label">表达式</label>
									<input class="form-control" name="expression" placeholder="请输入表达式">
								</div>
								<div class="form-group">
									<label class="control-label">宽度</label>
									<input class="form-control" name="width" placeholder="请输入宽度">
								</div>
								<div class="form-group">
									<label class="control-label">排序索引</label>
									<input class="form-control" name="orderindex" placeholder="请输入排序索引">
								</div>
								<div class="form-group">
									<label class="control-label">排序方式</label>
									<input class="form-control" name="ordertype" placeholder="请输入排序方式">
								</div>
								<div class="form-group">
									<label class="control-label">Ajax（该属性通过前端ajax获取数据，目前已有：meta/listproperty/m2cm,meta/listproperty/sql）</label>
									<input class="form-control" name="listajax" placeholder="请输入Ajax请求URL">
								</div>
								<div class="form-group">
									<label class="control-label">Sql（当上面属性值为meta/listproperty/sql时，才需要填写）</label>
									<input class="form-control" name="listsql" placeholder="请输入Sql语句">
								</div>
							</div>
						</div>
						<div class="box box-primary" th:if="${list.type == 'form'}">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label class="control-label">控件</label>
									<div class="row">
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="hidden" name="type">hidden</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="textfield" name="type">textfield</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="numberfield" name="type">numberfield</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="combo" name="type">combo</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="radio" name="type">radio</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="checkbox" name="type">checkbox</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="textarea" name="type">textarea</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="datetime" name="type">datetime</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="date" name="type">date</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="password" name="type">password</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="file" name="type">file</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="image" name="type">image</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="objectSelector" name="type">objectSelector</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="multipleObjectSelector" name="type">multipleObjectSelector</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="objectInputor" name="type">objectInputor</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="ckeditor" name="type">ckeditor</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="map" name="type">map</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="district" name="type">district</label>
											</div>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label">自定义控件</label>
									<input class="form-control" name="customtype" placeholder="请输入自定义控件类型">
								</div>
								<div class="form-group">
									<label class="control-label">表单加载默认值</label>
									<div class="checkbox">
										<label><input type="checkbox" name="forminitreplaceempty" value=1>  空值时替换</label>
										<label><input type="checkbox" name="forminitreplacevalue" value=1>  非空时替换</label>
										<label><input name="forminitvalue" placeholder="请输入表单加载默认值"></label>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label">表单提交默认值</label>
									<div class="checkbox">
										<label><input type="checkbox" name="formsubmitreplaceempty" value=1>  空值时替换</label>
										<label><input type="checkbox" name="formsubmitreplacevalue" value=1>  非空时替换</label>
										<label><input name="formsubmitvalue" placeholder="请输入表单提交默认值"></label>
									</div>
								</div>
								<div class="form-group">
									<div class="checkbox">
										<label><input type="checkbox" name="required" value=1>  必填</label>
										<label><input type="checkbox" name="readonly" value=1>  只读</label>
										<label><input type="checkbox" name="submit" value=1>  提交</label>
									</div>
								</div>
								<div class="form-group hidden" data-bigradio-target="type.radio,type.checkbox,type.combo,type.multipleObjectSelector">
									<label class="control-label">数据字典</label>
									<input class="form-control" name="dictionarytype" placeholder="请输入数据字典类型">
								</div>
								
								<div class="form-group hidden" data-bigradio-target="type.objectInputor">
									<label class="control-label">查询url</label>
									<input class="form-control" name="searchurl" placeholder="此处为objectInputor配置数据，参考：/meta/objectinputor/list">
								</div>
								
								<div class="form-group hidden" data-bigradio-target="type.objectInputor">
									<label class="control-label">数据url</label>
									<input class="form-control" name="dataurl" placeholder="此处为objectInputor配置数据，参考：/meta/objectinputor/value">
								</div>
							</div>
						</div>
						<div class="box box-primary" th:if="${list.type == 'search'}">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label class="control-label">控件</label>
									<div class="row">
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="hidden"
													name="type">hidden</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="textfield"
													name="type">textfield</label>
											</div>
										</div>
										<div class="col-sm-2">
											<div class="radio">
												<label><input type="radio" value="checkboxfilter"
													name="type">checkboxfilter</label>
											</div>
										</div>
									</div>
								</div>
								<div class="form-group" data-bigradio-target="type.checkboxfilter">
									<label class="control-label">listFilter</label>
									<input class="form-control" name="listfilter" placeholder="请输入listFilter">
								</div>
								<div class="form-group" data-bigradio>
									<label class="control-label">查询类型</label>
									<div class="radio" >
										<label><input type="radio" name="comparetype" value="like" checked> 模糊匹配</label>
										<label><input type="radio" name="comparetype" value="equal"> 完全匹配</label>
										<label><input type="radio" name="comparetype" value="expression"> 表达式匹配</label>
										<label><input type="radio" name="comparetype" value="select-expression"> 选择表达式匹配</label>
										<label data-bigradio-target="comparetype.expression" class="hidden"><input name="searchexpression" placeholder="请输入查询表达式"></label>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label">数据字典</label>
									<input class="form-control" name="dictionarytype" placeholder="请输入数据字典类型">
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default pull-left"
						data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary fa fa-plus-circle">
						提交</button>
				</div>
			</div>
		</div>
	</div>
</div>
